import request from '../utils/request'
export function getCollectionsInfoList(databaseName) {
    return request({
        url: 'getCollectionsInfoList',
        method: 'get',
        params: {
            connectionId: '',
            databaseName: databaseName
        }
    })
}

export function createCollection(databaseName, collectionName) {
    return request({
        url: 'createCollection',
        method: 'post',
        data: {
            databaseName: databaseName,
            collectionName: collectionName
        }
    })
}

export function dropCollection(databaseName, collectionName) {
    return request({
        url: 'dropCollection',
        method: 'post',
        data: {
            databaseName: databaseName,
            collectionName: collectionName
        }
    })
}